package exp3;

public class Exp3_6 {
	public static void main(String[] args) {
		int t=6;
		for(int i=1;i<=t;i++) {
			for(int j=1;j<=t-i+1;j++) {
				System.out.printf("%-3d",i*(i-1)/2+1+(j-1)*i+j*(j-1)/2);
			}
			System.out.println();
		}
		

	}
}
